#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{

    //必须放在 QApplication 之前

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);// 启用高 DPI 缩放
    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);// 使用高分辨率图标
    // QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor);
    QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);  // 向下取整缩放系数
    QApplication a(argc, argv);




    MainWindow w;
    w.show();
    return a.exec();
}
